﻿using XNAFight.Scene.Core;
using Microsoft.Xna.Framework;
using System;

namespace XNAFight.Scene.SandBoxOne
{
    class SandBoxOneMenu : MenuScreen
    {
        public SandBoxOneMenu(string _title)
            : base(_title)
        {
            title_pos.X = 350;
            title_pos.Y = 400;

            items = new TextMenuItem[2, 1];

            MenuItem reprendre_MI = new TextMenuItem(new Vector2(300, 440), "Reprendre", 0.8f);
            MenuItem quitter_MI = new TextMenuItem(new Vector2(400, 440), "Quitter", 0.8f);

            items[0, 0] = reprendre_MI;
            items[1, 0] = quitter_MI;

            reprendre_MI.Selected += Cancel;
            this.Cancelling += Cancel;

            quitter_MI.Selected += Complete;

            this.Adding += this.Reset;
            this.Added += this.Activate;
            this.Removed += this.Disable;
        }
    }
}
